import 'package:flutter/material.dart';

class IndexNavigatorItem {
  final String title;
  final String image;
  final Function(BuildContext context) onTap;

  IndexNavigatorItem(this.title, this.image, this.onTap);
}

List<IndexNavigatorItem> navigatorItemList = [
  IndexNavigatorItem('整租', 'images/navigator/1.png', (BuildContext context) {
    Navigator.pushNamed(context, 'login');
  }),
  IndexNavigatorItem('合租', 'images/navigator/2.png', (BuildContext context) {
    Navigator.pushNamed(context, 'login');
  }),
  IndexNavigatorItem('地图找房', 'images/navigator/3.png', (BuildContext context) {
    Navigator.pushNamed(context, 'login');
  }),
  IndexNavigatorItem('去出租', 'images/navigator/4.png', (BuildContext context) {
    Navigator.pushNamed(context, 'login');
  })
];
